package com.hcc.gateway.domain.enums;

import lombok.AllArgsConstructor;

/**
 * RespCodeEnum
 *
 * @author hushengjun
 * @date 2021/12/25
 */
@AllArgsConstructor
public enum RestRespCodeEnum {
    SUCCESS(200, "success"),
    ILLEGAL_ARG(601, "参数非法"),
    SERVICE_EXCEPTION(602, "服务异常"),
    UNKNOWN(999, "未知错误");

    private Integer code;
    private String name;

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

}
